package com.javandad.app.shared.entity.search;


public class AdvancedProjectSearchProperties extends FreetextSearchProperties
{
	private static final long serialVersionUID = -1463880309714962997L;
	
	private int projectType;
	
	public AdvancedProjectSearchProperties(String freetext, int projectType)
	{
		super(freetext, FreetextSearchProperties.SEARCH_FOR_PROJECT);		
		this.projectType = projectType;
	}
	@SuppressWarnings("unused")
	private AdvancedProjectSearchProperties() {}
	
	public int getProjectType() {
		return projectType;
	}
	public void setProjectType(int projectType) {
		this.projectType = projectType;
	}

	public boolean anythingSet() {
		return (projectType != 0);
	}

	@Override
	public String toString() {
		String s = super.toString();
		s += ", ProjectOpts(";
		if(projectType != 0)
			s += "type: "+projectType;
		s += ")";
		return s;
	}
}
